import http from "@/utils/http";
import type { RemindItem } from "./type";

/**
 * 获取提醒列表
 */
export const getRemindList = () => {
    return http.get<RemindItem[]>("/crm/system/page");
};

/**
 * 设置提醒
 */
export const setRemind = (data: RemindItem) => {
    return http.put("/crm/system/updateRemindRuleSetting", data);
}

/**
 * 禁用/启用提醒
 */
export const setRemindStatus = (ruleId:string,status: number) => {
    return http.put(`/crm/system/setRemindStatus/${ruleId}?status=${status}`);
}